package com.googlecode.jmxlogger.model;

import java.util.ArrayList;
import java.util.List;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;

/**
 * This is the container for a list of Servers.
 * @author jon
 */
@JsonSerialize(include=Inclusion.NON_NULL)
public class JmxProcess {

    private List<Server> servers = new ArrayList<Server>();
    
    public JmxProcess() { }

    public JmxProcess(Server server) {
        this.addServer(server);
    }

    public JmxProcess(List<Server> servers) {
        this.setServers(servers);
    }

    public void setServers(List<Server> servers) {
        this.servers = servers;
    }

    public List<Server> getServers() {
        return servers;
    }
    
    public void addServer(Server server) {
        this.servers.add(server);
    }
}
